<?php
	header("Content-Type: text/html;charset=utf-8");
	include("function/_nosql.php"); //
	include("function/function.php");
	include("_include.user.judge.php");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>会员中心</title>
<link rel="stylesheet" href="css/common.css"/>
<link rel="stylesheet" href="css/sq.css"/>
<script type="text/javascript" src="js/baidutongji.js"></script>
<script type="text/javascript" src="js/laydate/laydate.js"></script>
</head>
<body>
    <!--top-bar begin-->
	<? include("_include.top.topbar.php") ?>
    <!--top-bar end-->
    <!--banner begin-->
    <? include("_include.user.topbar.php")?>
    <!--banner end-->
    <!--member center-->
    <div class="member-box">
        <div class="content">
			<? include("_include.user.leftnav.php") ?>
            <div class="member-box-r">
                <div class="member-item1">
                    <div class="m-title">基本资料</div>
                   <?php include_once('_include.user.ordersearch.php');?>
                </div>
                <div class="member-basic">
                  <form id="Infoform" name="Infoform" method="post" action="user_basicsaddsave.php?action=edit">
					<table class="mbasic-table">
											<tbody>
												<tr>
													<td class="left"><label>Email :</label></td>
													<td class="right"><span><?=$kboy_user?></span></td>
												</tr>
												<tr>
													<td class="left"><label>昵称/公司名 :</label></td>
													<td class="right"><input name="user_nickname" type="text" class="basic-input w115" value="<?=$user_nickname?>"><span class="tips">(个人会员该项为昵称，企业会员填写公司名称)</span></td>
												</tr>
												<tr>
												  <td class="left">真实姓名：</td>
												  <td class="right"><input name="user_realname" type="text" class="basic-input w115" value="<?=$user_realname?>" /><i style="color: red;">*</i><span class="tips">(真实姓名才能方便报名)</td>
											  </tr>
											  <tr>
											  	<td class="left"><label>手机号码 :</label></td>
                          						<td class="right"><input name="user_tel" type="text" class="basic-input w115" value="<?=$user_tel?>" /><i style="color: red;">*</i><span class="tips">(真实手机才能方便联系)</td>
											  </tr>
												<tr>
												  <td class="left">身份证号：</td>
												  <td class="right"><input name="user_idcard" type="text" class="basic-input" id="user_tel"  value="<?=$user_idcard?>" /><i style="color: red;">*</i><span class="tips">(真实身份证才能方便购买保险)</td>
											  </tr>
											  
											  
												<tr>
													<td class="left"><label>性别 :</label></td>
													<td class="right">
														<label>
															<input type="radio" class="radio" name="user_sex" value="1" <? if($user_sex == 1){ echo "checked";}?>>
															<span>男</span>														</label>
														<label>
															<input type="radio" class="radio" name="user_sex" value="0" <? if($user_sex == 0){ echo "checked";}?>>
															<span>女</span>														</label>
														<label>
															<input type="radio" class="radio" name="user_sex" value="2" <? if($user_sex == 2){ echo "checked";}?>>
															<span>保密</span>														</label>													</td>
												</tr>
												<tr>
												  <td class="left">个人简介：</td>
												  <td class="right"><textarea name="user_about" rows="6"  class="basic-input" id="user_about"><?=$user_about?></textarea></td>
											  </tr>
												<tr>
													<td class="left"><label>验证码 :</label></td>
													<td class="right">
														<input name="user_passcode" id="user_passcode" value="" type="text" class="basic-input w115">
														<span class="yzm-pic"><img src="function/code.php" width="110" height="32" class="imgCode"/></span>
														<a href="javascript:void(0);" class="change-pic reshCode">看不清？？</a>													</td>
												</tr>
												<tr>
													<td class="left"></td>
													<td class="right">
														<input type="submit" name="reset-btn" class="reset-btn" value="更新资料" />
														<a href="user_basics.php" class="reset-btn">重设资料</a>													</td>
												</tr>
											</tbody>
										</table>
				  </form>
                </div>
            </div>
        </div>
    </div>
    <!--member center-->
    <!--foot begin-->
	<? include("_include.bottom.footbar.php") ?>
    <!--foot begin-->
    <script type="text/javascript" src="js/jquery-1.10.2.min.js"></script>
    <script type="text/javascript" src="js/jquery.SuperSlide.2.1.1.js"></script>
    <script type="text/javascript" src="js/main.js"></script>
    <script type="text/javascript" src="js/sq.js"></script>
	<script language="javascript">
	$(document).ready(function(){
		// 表单提交
		$("#Infoform").submit(function(){
			var user_passcode = $("#user_passcode").val();
			// 验证码验证
			if (user_passcode.replace(/\ /g,"").length<1){
				alert("请正确输入验证码！");
				$("#user_passcode").focus();
				return false;
			}
			if (isNaN(user_passcode.replace(/\ /g,""))){
				alert("请正确输入验证码！");
				$("#user_passcode").focus();
				return false;
			}
		});

		// 刷新验证码
		$(".reshCode").click(function(){
			$(".imgCode").attr("src","function/code.php?nums=" + Math.random());   
		});
	});
	</script>
</body>
</html>
